<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>14_浅拷贝-基本使用</title>
    </head>
    <body>
        <script>
            var person = {
                name:'小楠',
                age:22,
                hobby:['吃','喝'],
                eat:function(){
                    console.log('麻辣锅');
                }
            }


            var new_person = {};

            for(var x in person){
                // x分别             name age hobby  eat
                // person[x] 分别是 小南  29  吃 喝  麻辣锅
                // console.log(x,person[x]);
                new_person[x] = person[x];
            }

            console.log(person);
            console.log(new_person);


        </script>
    </body>
</html>